//
//  ByDocumentaryOddsView.m
//  caipiao_ios
//
//  Created by mc on 2018/8/18.
//  Copyright © 2018年 ZhangZhanbin. All rights reserved.
//

#import "ByDocumentaryOddsView.h"

@implementation ByDocumentaryOddsView

- (id)init{
    self = [super init];
    if (self) {
        
        UILabel *titleLabel = [[UILabel alloc] init];
        [self addSubview:titleLabel];
        [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(15);
            make.centerY.equalTo(self).offset(0);
            make.height.mas_equalTo(@15);
            make.width.mas_equalTo(@70);
        }];
        titleLabel.font = FONT(14);
        titleLabel.textColor = BY_TEXT_COLOR;
        titleLabel.text = @"保证赔率:";
        
        
        UILabel *buyLabel = [[UILabel alloc] init];
        [self addSubview:buyLabel];
        [buyLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(titleLabel.mas_right).offset(30);
            make.centerY.equalTo(self).offset(0);
            make.size.mas_equalTo(CGSizeMake(60, 15));
        }];
        buyLabel.text = @"赔率低于";
        buyLabel.textColor = BY_TEXT_COLOR;
        buyLabel.textAlignment = NSTextAlignmentRight;
        buyLabel.font = FONT(14);
        
        
        UILabel *countLabel = [[UILabel alloc] init];
        [self addSubview:countLabel];
        [countLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(buyLabel.mas_right).offset(10);
            make.centerY.equalTo(self).offset(0);
            make.size.mas_equalTo(CGSizeMake(45, 25));
        }];
        countLabel.text = @"1.5";
        countLabel.textColor = BY_THEME_COLOR;
        countLabel.textAlignment = NSTextAlignmentCenter;
        countLabel.font = FONT(14);
        countLabel.layer.borderColor = BY_LINE_COLOR.CGColor;
        countLabel.layer.borderWidth = 1;
        self.countLabel = countLabel;
        
        UILabel *timesLabel = [[UILabel alloc] init];
        [self addSubview:timesLabel];
        [timesLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(countLabel.mas_right).offset(10);
            make.centerY.equalTo(self).offset(0);
            make.size.mas_equalTo(CGSizeMake(80, 15));
        }];
        timesLabel.text = @"不收取佣金";
        timesLabel.textColor = BY_TEXT_COLOR;
        timesLabel.textAlignment = NSTextAlignmentCenter;
        timesLabel.font = FONT(14);
        
        
    }
    return self;
}

@end
